// -----------------------------------------------------------------------
//  <copyright file="UserIntegrationEvent.cs" company="LiuliuSoft">
//      Copyright (c) 2022-2024 DaprPlus. All rights reserved.
//  </copyright>
//  <site>https://dapr.plus</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2024/12/10 14:44:31</last-date>
// -----------------------------------------------------------------------

using DaprPlus.Domain.Events;

namespace Liuliu.Fsb.Services.Identity.Domain.IntegrationEvents
{
    public record UserCreatedIntegrationEvent(UserRecord[] Dtos) : IntegrationEvent
    { }

    public record UserUpdatedIntegrationEvent(UserRecord[] Dtos) : IntegrationEvent
    { }

    public record UserDeletedIntegrationEvent(long[] Ids) : IntegrationEvent
    { }

    public record UserRecord(long Id, string UserName, string NickName, bool IsLocked,
        string? Recommend = null, string? MyRecommends = null)
    { }
}
